package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: LastExerciseRecordBean
 * @Desciption: //最近一次练习的记录bean
 * @author: zhangshihao
 * @date: 2018-04-23
 */
public class LastExerciseRecordBean extends NetBaseBean {

    public int paper_id;
    public String create_time;
    public int exercises_count;
    public int right_count;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        if(jsonObject != null) {
            paper_id = jsonObject.optInt("paper_id");
            create_time = jsonObject.optString("create_time");
            exercises_count = jsonObject.optInt("exercises_count");
            right_count = jsonObject.optInt("right_count");
        }
    }
}
